home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
tools
/
czesc_1
/
bootute_2
/
install
< prev
next >
Wrap
Text File
|
1995-05-25
|
2KB
|
120 lines
; This is an Installer script that installs BootUte 2.3.
;
; Script written by Paul Toyne.
;
; ©1995 TLS Software.
(set @default-dest "")
(set @app-name "BootUte")
(complete 0)
(if (< (/ (getversion) 65536) 37)
(
(exit "Sorry BootUte only works on Kickstart 2.0 or above\n"
"I suggest you upgrade immediately")
))
(set update
(askchoice
(prompt "Do you wish to update an older version of BootUte?")
(help @askchoice-help)
(choices "Yes" "No")
(default 1)
)
)
(complete 10)
(if (= update 0)
(
(set bu_name
(askfile
(prompt "Please select your old BootUte executable")
(help @askfile-help)
(default "")
)
)
(complete 30)
(working "Deleting your previous version of BootUte")
(if (exists bu_name)
(
(delete bu_name)
(delete (cat bu_name ".info"))
))
(if (exists "ENV:BootUte" (noreq))
(
(delete "ENV:BootUte")
))
(if (exists "ENVARC:BootUte" (noreq))
(
(delete "ENVARC:BootUte")
))
))
(complete 50)
(set tls_dir
(askdir
(prompt "Please select a location to install the BootUte directory")
(help @askfile-help)
(default "Work:")
)
)
(if (NOT (exists (tackon tls_dir "BootUte")))
(
(makedir (tackon tls_dir "BootUte")
(infos)
)
))
(complete 60)
(copyfiles
(prompt "Copying BootUte's files")
(source "")
(dest (tackon tls_dir "BootUte"))
(choices "BootUte_2")
(infos)
)
(copyfiles
(prompt "Copying BootUte's files")
(source "")
(dest (tackon tls_dir "BootUte/Docs"))
(choices "Docs/BootUte_2.guide"
"Docs/BootUte_2.doc"
"Docs/Register_BU.doc")
(infos)
)
(set @default-dest (tackon tls_dir "BootUte"))
(if (NOT (exists "ENV:TLS"))
(
(makedir "ENV:TLS")
))
(if (NOT (exists "ENV:TLS/BootUte"))
(
(makedir "ENV:TLS/BootUte")
))
(if (NOT (exists "ENVARC:TLS"))
(
(makedir "ENVARC:TLS")
))
(if (NOT (exists "ENVARC:TLS/BootUte"))
(
(makedir "ENV:TLS/BootUte")
))
(complete 100)